package com.example.a2209_shop.adapter

import com.bumptech.glide.Glide
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.a2209_shop.R
import com.example.base.entity.DetailEntity

class ScAdapter:BaseQuickAdapter<DetailEntity,BaseViewHolder>(R.layout.item_sc) {
    override fun convert(holder: BaseViewHolder, item: DetailEntity) {
        Glide.with(context).load(item.goods_default_icon).into(holder.getView(R.id.sc_iv))
        holder.setText(R.id.sc_tv,item.goods_desc)
    }
}